//
//  ReverseString.m
//  GLCodingInterview
//
//  Created by 『国』 🇨🇳 on 2020/5/25.
//  Copyright © 2020 colyn. All rights reserved.
//

#import "ReverseString.h"

@implementation ReverseString

+ (void)reverseArr:(NSMutableArray *)arr span:(int)span {
    int count = 0;
    while (count < arr.count/2) {
        [arr exchangeObjectAtIndex:count withObjectAtIndex:arr.count-1-count];
        count += span+1;
    }
}

@end
